/**
 * @author omenkk7
 * @description
 * @create 2025/9/10
 */
public class Main {

    public static void main(String[] args) {

        MysqlSessionFactory mySqlSessionFactory = new MysqlSessionFactory();
        UserMapper mapper = mySqlSessionFactory.getMapper(UserMapper.class);
        User user = mapper.selectById(2);
        System.out.println(user);
        System.out.println(mapper.selectByName("xiaoming"));
        System.out.println(mapper.selectByNameAndAge("jerry",10));
    }
}
